package com.vjmobi.test.vo.page;

public class PageInfo {
	protected long size = 10;
	protected long num;
	public <T extends PageInfo>void fillPageInfo(T t){
		t.setSize(this.size);
		t.setNum(this.num);
	}
	public long getSize() {
		if(size < 0) {
			size = 10;
		}
		return size;
	}
	public void setSize(long size) {
		this.size = size;
	}
	public long getNum() {
		if(this.num < 0) {
			num = 1;
		}
		return num;
	}
	public void setNum(long num) {
		this.num = num;
	}
	@Override
	public String toString() {
		return "PageInfo [size=" + size + ", num=" + num + "]";
	}
}
